package com.zyp.observer;

public class TestObserver {

	public static void main(String[] args) {
		Subject sub=new MySubject();
		sub.add(new ObserverA());
		sub.add(new ObserverB());
		sub.selfOperation();
	}
	
}
